package AdapterPattern.ClassAdapter;

/**
 * 适配器模式——源类
 * 被适配的类
 * 220V直流电
 */
public class VoltageSrc {
    private int voltageSize = 220;
    private String voltageType = "交流";

    //输出源电压 220v
    public int outputVoltageSize() {
        System.out.println("源电压 输出大小为 " + voltageSize + " V");
        return voltageSize;
    }

    //输出源电压 220v
    public String outputVoltageType() {
        System.out.println("源电压 输出类型为" + voltageType);
        return voltageType;
    }
}
